package br.brpv.silvestrin.vendas.domain;

// TODO tudo string
public class Order {
    public static final int STATUS_SAVE = 1;
    public static final int STATUS_FINALIZE = 2;

    private String tpmnt; //"I" para inicializar ou "A" para adicionar
    private String id;            //"p_id|number|" + 0 + "||^" +
    private String companyId;       // "p_empr_id|number|" + Var.wgCodEmpresa + "||^" +
    private String clientId;        //"p_cli_id|number|" + Var.wgClientes.Cli_Id + "||^" +
    private String dateDeliver;       // 5/12/12 mm/dd/yy "p_dt_entrega|date|" + String.Empty + "||^" +
    private String status; // 1 = pedido gravado 2 = finaliza pedido  "p_status|varchar|" + "1" + "||^" +
    private String userId;       // "p_usu_id|number|" + Var.wgUser_Id + "||^" +
    private String typeDiscount;    //    "p_tp_desc|varchar|" + String.Empty + "||^" +
    private String valueDiscount;     //   "p_vlr_desc|number|" + 0 + "||^" +
    private String typeAcresc;     //    "p_tp_acresc|varchar|" + String.Empty + "||^" +
    private String valueAcresc;     //   "p_vlr_acresc|number|" + 0 + "||^" +
    private String forn_id; //pegar do CompanyParameters transporter       "p_forn_id|number|" + Uti.cLong(Var.wgPedido.Forn_Id) + "||^" +
    private String typeFrete;      //'C' ou 'F'  "p_tp_frete|varchar|" + Var.wgPedido.Tp_Frete + "||^" +
    private String valueFrete;      //  "p_vlr_frete|number|" + 0 + "||^" +
    private String obsOrder;        //"p_obs_ped|varchar|" + String.Empty + "||^" +
    private String obsNotaFiscal;   //     "p_obs_nf|varchar|" + String.Empty + "||^" +
    private String por_id;       // "p_por_id|number|" + 0 + "||^" +
    private String condPaymentId;   //     "p_cdpg_id|number|" + 0 + "||^" +
    private String placaId;        //"p_placa_id|number|" + 0 + "||^" +
    private String typeNotaFiscal;   //     "p_tpnf_id|number|" + 0 + "||^" +
    private String hourInicial;    //    "p_hora_ent_inicial|varchar|" + String.Empty + "||^" +
    private String hourFinal;       // "p_hora_ent_final|varchar|" + String.Empty + "||^" +
    private String establishmentId; //        "p_estfat_id|number|" + Var.wgClientes.Est_Id + "||^" +
    private String representanteId; //        "p_rep_id|number|" + 0 + "||^" +
    private String ordemCompra;     //   "p_ordem_cpr|varchar|" + String.Empty + "||^" +
    private String priceTableId; //pega de companyParameters priceTable        "p_tprven_id|number|" + Uti.cLong(Var.wgPedido.Tprven_Id) + "||^" +
    private String driverId;       // "p_mot_id|number|" + 0 + "||^" +
    private String dateExped;     //        "p_dt_expedicao|date|" + String.Empty + "||^" +
    private String hourExped;     //  "p_hr_expedicao|varchar|" + String.Empty + "||^" +

    private String addressId;        //"p_end_id|number|" + 0 + "||^"+
    private String levaLote;         // "p_leva_lote|number|" + levalote + "||";
    private String valorBruto;
    private String valorLiquido;
    
    private String nomeCli;
    private String nomeEmp;
    private String nomeEstab;
    private String dateEmiss;
    private String placa;
    private String pdv_id;
    private String impresso;
    private String CPF;
    private String name;

    public Order() {
    }


	public String getPdv_id() {
		return pdv_id;
	}

	public void setPdv_id(String pdv_id) {
		this.pdv_id = pdv_id;
	}

	public String getImpresso() {
		return impresso;
	}

	public void setImpresso(String impresso) {
		this.impresso = impresso;
	}

	public String getPlaca() {
		return placa;
	}

	public void setPlaca(String placa) {
        if(placa.equals("")) placa = "0";
		this.placa = placa;
	}

	public String getTpmnt() {
		return tpmnt;
	}

	public void setTpmnt(String tpmnt) {
		this.tpmnt = tpmnt;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getClientId() {
		return clientId;
	}

	public void setClientId(String clientId) {
		this.clientId = clientId;
	}

	public String getDateDeliver() {
		return dateDeliver;
	}

	public void setDateDeliver(String dateDeliver) {
		this.dateDeliver = dateDeliver;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getTypeDiscount() {
		return typeDiscount;
	}

	public void setTypeDiscount(String typeDiscount) {
		this.typeDiscount = typeDiscount;
	}

	public String getValueDiscount() {
		return valueDiscount;
	}

	public void setValueDiscount(String valueDiscount) {
		this.valueDiscount = valueDiscount;
	}

	public String getTypeAcresc() {
		return typeAcresc;
	}

	public void setTypeAcresc(String typeAcresc) {
		this.typeAcresc = typeAcresc;
	}

	public String getValueAcresc() {
		return valueAcresc;
	}

	public void setValueAcresc(String valueAcresc) {
		this.valueAcresc = valueAcresc;
	}

	public String getForn_id() {
		return forn_id;
	}

	public void setForn_id(String forn_id) {
		this.forn_id = forn_id;
	}

	public String getTypeFrete() {
		return typeFrete;
	}

	public void setTypeFrete(String typeFrete) {
		this.typeFrete = typeFrete;
	}

	public String getValueFrete() {
		return valueFrete;
	}

	public void setValueFrete(String valueFrete) {
		this.valueFrete = valueFrete;
	}

	public String getObsOrder() {
		return obsOrder;
	}

	public void setObsOrder(String obsOrder) {
		this.obsOrder = obsOrder;
	}

	public String getObsNotaFiscal() {
		return obsNotaFiscal;
	}

	public void setObsNotaFiscal(String obsNotaFiscal) {
		this.obsNotaFiscal = obsNotaFiscal;
	}

	public String getPor_id() {
		return por_id;
	}

	public void setPor_id(String por_id) {
		this.por_id = por_id;
	}

	public String getCondPaymentId() {
		return condPaymentId;
	}

	public void setCondPaymentId(String condPaymentId) {
		this.condPaymentId = condPaymentId;
	}

	public String getPlacaId() {
		return placaId;
	}

	public void setPlacaId(String placaId) {
        if(placaId.equals("")) placaId = "0";
		this.placaId = placaId;
	}

	public String getTypeNotaFiscal() {
		return typeNotaFiscal;
	}

	public void setTypeNotaFiscal(String typeNotaFiscal) {
		this.typeNotaFiscal = typeNotaFiscal;
	}

	public String getHourInicial() {
		return hourInicial;
	}

	public void setHourInicial(String hourInicial) {
		this.hourInicial = hourInicial;
	}

	public String getHourFinal() {
		return hourFinal;
	}

	public void setHourFinal(String hourFinal) {
		this.hourFinal = hourFinal;
	}

	public String getEstablishmentId() {
		return establishmentId;
	}

	public void setEstablishmentId(String establishmentId) {
		this.establishmentId = establishmentId;
	}

	public String getRepresentanteId() {
		return representanteId;
	}

	public void setRepresentanteId(String representanteId) {
		this.representanteId = representanteId;
	}

	public String getOrdemCompra() {
		return ordemCompra;
	}

	public void setOrdemCompra(String ordemCompra) {
		this.ordemCompra = ordemCompra;
	}

	public String getPriceTableId() {
		return priceTableId;
	}

	public void setPriceTableId(String priceTableId) {
		this.priceTableId = priceTableId;
	}

	public String getDriverId() {
		return driverId;
	}

	public void setDriverId(String driverId) {
        if(driverId.equals("")) driverId = "0";
		this.driverId = driverId;
	}

	public String getDateExped() {
		return dateExped;
	}

	public void setDateExped(String dateExped) {
		this.dateExped = dateExped;
	}

	public String getHourExped() {
		return hourExped;
	}

	public void setHourExped(String hourExped) {
		this.hourExped = hourExped;
	}

	public String getAddressId() {
		return addressId;
	}

	public void setAddressId(String addressId) {
        if(addressId.equals("")) addressId = "0";
		this.addressId = addressId;
	}

	public String getLevaLote() {
		return levaLote;
	}

	public void setLevaLote(String levaLote) {
		this.levaLote = levaLote;
	}

	public String getValorBruto() {
		return valorBruto;
	}

	public void setValorBruto(String valorBruto) {
		this.valorBruto = valorBruto;
	}

	public String getValorLiquido() {
		return valorLiquido;
	}

	public void setValorLiquido(String valorLiquido) {
		this.valorLiquido = valorLiquido;
	}

	public String getNomeCli() {
		return nomeCli;
	}

	public void setNomeCli(String nomeCli) {
		this.nomeCli = nomeCli;
	}

	public String getNomeEmp() {
		return nomeEmp;
	}

	public void setNomeEmp(String nomeEmp) {
		this.nomeEmp = nomeEmp;
	}

	public String getNomeEstab() {
		return nomeEstab;
	}

	public void setNomeEstab(String nomeEstab) {
		this.nomeEstab = nomeEstab;
	}

	public String getDateEmiss() {
		return dateEmiss;
	}

	public void setDateEmiss(String dateEmiss) {
		this.dateEmiss = dateEmiss;
	}

    public String getCPF() {
        return CPF;
    }

    public String getName() {
        return name;
    }

    public void setCPF(String CPF) {
        this.CPF = CPF;
    }

    public void setName(String name) {
        this.name = name;
    }
}
